<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>百度外卖</title>
	<link rel="stylesheet" type="text/less" href="http://localhost/c39/waimai/Application/Index/View/Public/css/common.less">
	<link rel="stylesheet" type="text/less" href="http://localhost/c39/waimai/Application/Index/View/Public/css/shoplist.less">
	<script type="text/javascript" src="http://localhost/c39/waimai/Application/Index/View/Public/js/less-1.5.0.min.js"></script>
	<script type='text/javascript' src='http://localhost/C39/waimai/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/C39/waimai/hdphp/hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<link href='http://localhost/C39/waimai/hdphp/hdjs/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/hdjs.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/hdvalidate.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/slide.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
COMMON = '<?php echo $GLOBALS['user']['COMMON'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
MODULE = '<?php echo $GLOBALS['user']['MODULE'];?>';
CONTROLLER = '<?php echo $GLOBALS['user']['CONTROLLER'];?>';
ACTION = '<?php echo $GLOBALS['user']['ACTION'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
VIEW = '<?php echo $GLOBALS['user']['VIEW'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
CONTROLLERVIEW = '<?php echo $GLOBALS['user']['CONTROLLERVIEW'];?>';
</script>
	<script type="text/javascript">
		var s = '<?php echo _default($_GET['s'],0);?>';
		var cnid = <?php echo _default($_GET['cnid'],0);?>
	</script>
	<script type="text/javascript" src="http://localhost/c39/waimai/Application/Index/View/Public/js/shoplist.js"></script>
	<script type="text/javascript" src="http://localhost/c39/waimai/Application/Index/View/Public/js/login.js"></script>
	
</head>
<body>
	<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><div id="header">
		<div class="header_nva">
			<div class="logo">
				<a href="<?php echo U('Index/index');?>"></a>
			</div>
			<div class="select_city">
			<div class="city-locate dropdown-toggle">
			<a class="current-city" data-code="167" data-name="大连">大连</a>
			<b class="arrow"></b>
			</div>
				<i></i>
				<a class="switch-action" href="javascript:;">切换</a>
				<input class="import_city" type="text" name="city" value="修竹大厦" onfocus="if(this.value=='修竹大厦') this.value=''" onblur="this.value=this.value==''?'修竹大厦':this.value">
			</div>

			<div id="muti-aois" style="position: absolute;top:60px;left:363px;display:block">

		<div class="cities" data-node="cities" style="display:none">
			<dl class="cities-group">
				<dt> ABCDE </dt>
				<dd>
				<ul>
				<li>
				<a data-hasaoi="false" data-cityid="131" href="javascript:void(0);" data-node="nav_city"> 北京 </a>
				</li>
				<li>
				<a data-hasaoi="true" data-cityid="167" href="javascript:void(0);" data-node="nav_city"> 大连 </a>
				</li>
				<li>
				<a data-hasaoi="true" data-cityid="53" href="javascript:void(0);" data-node="nav_city"> 长春 </a>
				</li>
				<li>
				<a data-hasaoi="true" data-cityid="75" href="javascript:void(0);" data-node="nav_city"> 成都 </a>
				</li>
				</ul>
				</dd>
				</dl>
				

				<dl class="cities-group">
				<dt> FGHIJ </dt>
				<dd>
				<ul>
				<li>
				<a data-hasaoi="false" data-cityid="131" href="javascript:void(0);" data-node="nav_city">杭州</a>
				</li>
				<li>
				<a data-hasaoi="true" data-cityid="167" href="javascript:void(0);" data-node="nav_city">哈尔滨</a>
				</li>
				</ul>
				</dd>
				</dl>




				<dl class="cities-group">
				<dt> KLMNO </dt>
				<dd>
				<ul>
				<li>
				<a data-hasaoi="false" data-cityid="131" href="javascript:void(0);" data-node="nav_city">南京</a>
				</li>
				</ul>
				</dd>
				</dl>


				<dl class="cities-group">
				<dt> PQRST </dt>
				<dd>
				<ul>
				<li>
				<a data-hasaoi="false" data-cityid="131" href="javascript:void(0);" data-node="nav_city">上海</a>
				</li>

				<li>
				<a data-hasaoi="false" data-cityid="131" href="javascript:void(0);" data-node="nav_city">苏州</a>
				</li>

				<li>
				<a data-hasaoi="false" data-cityid="131" href="javascript:void(0);" data-node="nav_city">太原</a>
				</li>

				<li>
				<a data-hasaoi="false" data-cityid="131" href="javascript:void(0);" data-node="nav_city">沈阳</a>
				</li>

				<li>
				<a data-hasaoi="false" data-cityid="131" href="javascript:void(0);" data-node="nav_city">石家庄</a>
				</li>
				</ul>
				</dd>
				</dl>

				


		</div>

<!-- 自地区分类 -->

		<div class="aois" data-node="cities" style="display:none">
	
	<dl class="aoi-group">
<dt>春熙路商圈</dt>
<dd>
<ul>
<li>
<a href="/waimai?qt=shoplist&lat=3566945.00&lng=11587011.20&address=天府时代广场&city_id=75" data-node="nav_aoi" title="天府时代广场"> 天府时代广场 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3565339.00&lng=11587272.91&address=水井坊&city_id=75" data-node="nav_aoi" title="水井坊"> 水井坊 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3565662.00&lng=11587564.91&address=兰桂坊&city_id=75" data-node="nav_aoi" title="兰桂坊"> 兰桂坊 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3565242.00&lng=11588274.35&address=阳光·新业中心&city_id=75" data-node="nav_aoi" title="阳光·新业中心"> 阳光·新业中心 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3565320.02&lng=11587849.17&address=青龙正街&city_id=75" data-node="nav_aoi" title="青龙正街"> 青龙正街 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3565866.00&lng=11587967.00&address=东方广场&city_id=75" data-node="nav_aoi" title="东方广场"> 东方广场 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566411.00&lng=11586935.70&address=香槟广场&city_id=75" data-node="nav_aoi" title="香槟广场"> 香槟广场 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566112.00&lng=11587360.85&address=喜年广场&city_id=75" data-node="nav_aoi" title="喜年广场"> 喜年广场 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3567340.00&lng=11586494.33&address=蜀都大厦&city_id=75" data-node="nav_aoi" title="蜀都大厦"> 蜀都大厦 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3567190.00&lng=11585352.50&address=天府广场&city_id=75" data-node="nav_aoi" title="天府广场"> 天府广场 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566473.00&lng=11585597.00&address=仁恒置地&city_id=75" data-node="nav_aoi" title="仁恒置地"> 仁恒置地 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3567233.00&lng=11586964.78&address=王府井（春熙店）&city_id=75" data-node="nav_aoi" title="王府井（春熙店）"> 王府井（春熙店） </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3567009.00&lng=11586024.90&address=中环广场&city_id=75" data-node="nav_aoi" title="中环广场"> 中环广场 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566424.00&lng=11585854.30&address=财富中心广场&city_id=75" data-node="nav_aoi" title="财富中心广场"> 财富中心广场 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566372.00&lng=11587110.10&address=晶融汇&city_id=75" data-node="nav_aoi" title="晶融汇"> 晶融汇 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3565243.00&lng=11587392.50&address=合江亭&city_id=75" data-node="nav_aoi" title="合江亭"> 合江亭 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566567.00&lng=11586566.60&address=蓝光大厦&city_id=75" data-node="nav_aoi" title="蓝光大厦"> 蓝光大厦 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566784.00&lng=11585970.90&address=新中心&city_id=75" data-node="nav_aoi" title="新中心"> 新中心 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566243.00&lng=11588024.66&address=成都市骨科医院&city_id=75" data-node="nav_aoi" title="成都市骨科医院"> 成都市骨科医院 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3565846.00&lng=11588577.48&address=蓉上坊&city_id=75" data-node="nav_aoi" title="蓉上坊"> 蓉上坊 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566083.98&lng=11588163.40&address=点将台街&city_id=75" data-node="nav_aoi" title="点将台街"> 点将台街 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3566324.00&lng=11586448.30&address=四川省政府&city_id=75" data-node="nav_aoi" title="四川省政府"> 四川省政府 </a>
</li>
<li>
<a href="/waimai?qt=shoplist&lat=3565991.61&lng=11585744.96&address=盐道街&city_id=75" data-node="nav_aoi" title="盐道街"> 盐道街 </a>
</li>
</ul>
</dd>
</dl>
</div>
</div>

			<div class="menu">
				<ul>
					
					<li class="find"><a href="">外卖</a></li>
					<li class="order"><a href="<?php echo U('Myorder/index');?>">我的订单</a></li>
					<li class="contact"><a href="">联系我们</a></li>
				</ul>

			</div>


			<div id="logout_user_info">

			<?php if(!$_SESSION['uid'] && !$_SESSION['username']){?>
				<ul>
					<li class="login"><a href="javascript:;">登录</a></li>
					<li class="enroll"><a href="<?php echo U('Register/index');?>" target="_blank">注册</a></li>
				</ul>
			<?php  }else{ ?>
				<ul>
					<li id="usernameInfo">
						<a id="username" class="mn-lk" href="/waimai/trade/orderlist">你好，<?php echo $_SESSION['username'];?></a>
						<div class="myInfo">
							<ul class="mm">
								<li class="myInfo-dd"><a href="">我的订单</a></li>
								<li class="myInfo-dz"><a href="">送餐地址</a></li>
								<li class="myInfo-sc"><a href="">收藏夹</a></li>
								<li class="myInfo-dj"><a href="">代金卷</a></li>
								<li class="myInfo-quit"><a href="<?php echo U('Storelist/quit');?>">退出</a></li>
							</ul>
							<div class="top-arrow"></div>
						</div>
						
					</li>
				</ul>
			<?php }?>
				
			</div>
		</div>

	</div>
	<!-- 登入区域 -->
	<div id="screen" style="display:none">
		<div class="s-screen"></div>
		<div class="f-login">
		<form action="<?php echo U('login');?>" method="post">
			<div class="title">
				百度帐号登录
				<a class="qx" href="javascript:;"></a>
			</div>

			<div class="import user">
				<label class="user-img"></label>
				<input type="text" class="username" name="username" placeholder="手机/邮箱/用户名" />
			</div>

			<div class="import pad">
				<label class="password-img"></label>
				<input type="text" class="password" name="password" placeholder="密码" />

			</div>

			<div class="import code">
				<img src="<?php echo U('code');?>" style="float:right">
				<input type="text" class="code" name="code" placeholder="验证码" />

			</div>
			<div class="import" style="height:25px;">
			<input type="checkbox" style="margin-right:10px;" />下次自动登入


			</div>

			<div class="import">
			<input id="" class="pass-button pass-button-submit" type="submit" value="登录">
			</div>

			<p><a class="register" href="#">立即注册</a></p>
			</form>
		</div>
	</div>
	<div id="ad" class="caitant">
		<a href="">
		<img src="http://localhost/c39/waimai/Application/Index/View/Public/image/da6dbccf26d88aaa76a5927389128bba.jpg">
		</a>
	</div>

	<!-- 分类 -->

	<div id="shop_classify" class="caitant">
		<div class="tab_Control">
			<ul>
			<li class="item-index-0">
			<a href="<?php echo U('Storelist/index');?>">
			<div class="item-img">
				<b class="default_img"<?php if(!empty($_GET['cnid'])){?>style="opacity:1"<?php }?>></b>
				<b class="default_hover"></b>
			</div>
			<em class="pink">全部</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-1">
			<a href="<?php echo U('Storelist/index',array('cnid'=>1));?>">
			<div class="item-img">
				<b class="default_img"  <?php if($_GET['cnid']==1){?>style="opacity:0"<?php }?>></b>
				<b class="default_hover"></b>
			</div>
			<em>品牌快餐</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-2">
			<a href="<?php echo U('Storelist/index',array('cnid'=>2));?>">
			<div class="item-img" >
				<b class="default_img"  <?php if($_GET['cnid']==2){?>style="opacity:0"<?php }?>></b>
				<b class="default_hover"></b>
			</div>
			<em>中式正餐</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-3">
			<a href="<?php echo U('Storelist/index',array('cnid'=>3));?>">
			<div class="item-img">
				<b class="default_img" <?php if($_GET['cnid']==3){?>style="opacity:0"<?php }?>></b>
				<b class="default_hover"></b>
			</div>
			<em>小吃快餐</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-4">
			<a href="<?php echo U('Storelist/index',array('cnid'=>4));?>">
			<div class="item-img">
				<b class="default_img" <?php if($_GET['cnid']==4){?>style="opacity:0"<?php }?>></b>
				<b class="default_hover"></b>
			</div>
			<em>日韩料理</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-5">
			<a href="<?php echo U('Storelist/index',array('cnid'=>5));?>">
			<div class="item-img">
				<b class="default_img" <?php if($_GET['cnid']==5){?>style="opacity:0"<?php }?>></b>
				<b class="default_hover"></b>
			</div>
			<em>咖啡甜品</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-6">
			<a href="<?php echo U('Storelist/index',array('cnid'=>6));?>">
			<div class="item-img">
				<b class="default_img" <?php if($_GET['cnid']==6){?>style="opacity:0"<?php }?>></b>
				<b class="default_hover"></b>
			</div>
			<em>面包蛋糕</em>
			</a>
			</li>
			</ul>
		</div>
		<?php 
		
			$s = explode(',', $_GET['s']);

		 ?>
		<div class="filter-bottom">
			<ul class="filter-option">
				<li class="option-item <?php if(in_array('jian', $s)): ?>f-selected<?php endif ?>" data-type='jian'>
					<i></i>
					<span>立减优惠</span>
				</li>
				<li class="option-item <?php if(in_array('mian', $s)): ?>f-selected<?php endif ?>" data-type='mian'>
					<i></i>
					<span>免配送费</span>
				</li>
				<li class="option-item <?php if(in_array('piao', $s)): ?>f-selected<?php endif ?>" data-type='piao'>
					<i></i>
					<span>支持开发票</span>
				</li>
			</ul>
			<div class="filter-search">
				<input id="f-input" class="f-input placeholder-con" type="text" value="" placeholder="输入餐厅名搜索">
				<button id="f-search" class="f-search"></button>
			</div>
		</div>
	</div>

	<div id="shop_list" class="caitant">
	<?php if(!empty($Storedata)){?>
		<ul>
		
		<?php if(is_array($Storedata)){?><?php  foreach($Storedata as $key=>$v){ ?>
			<li class="list-f">
				<a href="<?php echo U('Content/index',array('stid'=>$v['stid']));?>" style="display:block;position:absolute;left:0;top:0px;width: 228px;height: 262px;"></a>
				<div class="shop_img">
					<img width="228" src="http://localhost/c39/waimai/<?php echo $v['thumb'];?>" alt="<?php echo $v['stname'];?>" />
				</div>
				<div class="shop_info">
					<div class="title"><?php echo $v['stname'];?></div>
					<div class="s-info">
						<div class="star-control">
							<span class="rate">
								<span class="rate-inner" style="width:<?php echo $v['grade'];?>px"></span>
							</span>

						</div>
						<div class="sell">
							 已售<span><?php echo $v['sellnub'];?></span>份 
						</div>
					</div>

					<div class="price">
						<em>起送：¥<?php echo $v['risedelivery'];?></em>
						<em>配送：¥<?php echo $v['delivery'];?></em>
						<em class="time"><?php echo $v['deliverytime'];?>分钟</em>
				</div>

				<div class="feature">
					<?php if(in_array("jian",explode(",",$v["favorable"]))){?>
					<em class="jian-min-icon premium-icon" data-msg="下单立减6元，每天2单"></em>
					<?php }?>
					<?php if(in_array("mian",explode(",",$v["favorable"]))){?>
					<em class="mian-min-icon premium-icon" data-msg="下单免配送费，每天2单"></em>
					<?php }?>
					<?php if(in_array("piao",explode(",",$v["favorable"]))){?>
					<em class="invoice-min-icon premium-icon" data-msg="支持开发票"></em>
					<?php }?>
					<!-- <?php if(jian == $v["pingying"]){?>
					<em class="jian-min-icon premium-icon" data-msg="下单立减6元，每天2单"></em>
					<?php }?>
					<?php if(mian == $v["pingying"]){?>
					<em class="mian-min-icon premium-icon" data-msg="下单免配送费，每天2单"></em>
					<?php }?>
					<?php if(piao == $v["pingying"]){?>
					<em class="invoice-min-icon premium-icon" data-msg="支持开发票"></em>
					<?php }?> -->

				</div>

				<div class="overlay">
				<div class="o-con">
				<div class="shop-title">
				<p><?php echo $v['stname'];?></p>
				</div>
				<div class="shop-feature">
				<ul>
				<?php if(in_array("减",explode(",",$v["favorable"]))){?>
				<li>
				<em class="jian-min-icon premium-icon"></em>
				<p>下单立减6元，每天2单</p>
				</li>
				<?php }?>

				<?php if(in_array("免",explode(",",$v["favorable"]))){?>
				<li>
				<em class="mian-min-icon premium-icon"></em>
				<p>下单免配送费，每天2单</p>
				</li>
				<?php }?>


				<?php if(in_array("票",explode(",",$v["favorable"]))){?>
				<li>
				<em class="invoice-min-icon premium-icon"></em>
				<p>支持开发票</p>
				</li>
				<?php }?>


				</ul>
				</div>
				<div class="shop-notice">
				<h2>商家公告</h2>
				<p> <?php echo $v['bulletin'];?> </p>
				</div>
				</div>
				<div class="o-arrow"></div>
				</div>
			</li>
			<?php }}?>

			
		</ul>
		<?php  }else{ ?>

		<div class="default_null">
			<img alt="" src="http://localhost/c39/waimai/Application/Index/View/Public/image/noresult_b2672ee.png">
			<p class="msg">抱歉，没有找到相关商户</p>
			<p>
			<a href="<?php echo U('Storelist');?>">返回重新查找</a>
			</p>
		</div>
			<?php }?>
	</div>
</body>
</html>